How to add the who is online for the entire site?
Using Jamroom
pch:
Yes, it is probably because of the cache. Then, users in JR are being shown twice at the same time: as logged users and as guests, because there were guest few minutes or seconds before logging.
Even here in the JR Forum the guests that we are seeing in the Who is online are probably "us" - logged users (There are not really users - I am not quite sure, I am just presuming). That can lead us to conclude that the Who is online is not accurate because of the duplication, right?
Is it possible to make "logged in user" a real "logged in user" and a "guest", a true/real "guest"?
You might try clearing your browser cache. I'm not seeing an issue with it here on our forums.
pch:
It works. Thanks Douglas.
Just another small issue:
If there was more than 1 visitor online, when JR removes them from the Who is Online, it shows:
0 Visitantes
instead of:
0 Visitante
Please notice that visitante (guest) is being display in plural and not in singular. it should have used the correct language string in singular because the number is 0 (zero). The number updates but the language string doesn't. It will keep on showing 0 Guests (guest in plural) for almost forever till another guest will be online. Then it will go back to normal and show: 1 Guest (in singular).
How to fix it?
Thanks
It might be better if you use Brian's suggestion.
Change this:
{if $visitor_count == 1}
{jrCore_lang skin=$_conf.jrCore_active_skin id="#" default="Guest" assign="gs"}
{else}
{jrCore_lang skin=$_conf.jrCore_active_skin id="#" default="Guests" assign="gs"}
{/if}
to this:
{jrCore_lang skin=$_conf.jrCore_active_skin id="#" default="Guests" assign="gs"}
and this:
<i><b>{$visitor_count}</b> {$gs}</i>
to this:
<i>{$gs}: <b>{$visitor_count}</b></i>
Hope this helps!